	function selectAll(type)
	{
		if(type)
		{
		   $("input[name='tableName']").each(function(){
           	$(this).attr("checked",true);
           });  
		}
		else
		{
			 $("input[name='tableName']").each(function(){
           		$(this).attr("checked",false);
             });  
		}
		
	}
	
	function createTable(path)
	{
		var str = "";
		 $('input[name="tableName"]:checked').each(function() {
			 str += $(this).val() + ',';
	     }); 
		 if (str.length > 0) 
		 { 
			 //得到选中的checkbox值序列 
			 str = str.substring(0,str.length - 1); 
		 } 
		 var checkedType = "";
		 $('input[name="checkCreate"]:checked').each(function() {
			 checkedType += $(this).val() + ',';
	     });
//		 alert(str==''?'你还没有选择任何内容！':str); 
		 if(str == "" || checkedType == "")
		 {
			 alert((str=='' || checkedType == "" )?'你还没有选择任何内容！':str); 
		 }
		 else
		 {
			 create(path,str,checkedType);
		 }
	}
	
	function create(path,str,checkedType)
	{
		path = path + "&needCreateTable=" + str + "&checkedType=" + checkedType + "&shengcPath=" + $("#shengcPath").val()  + "&shengcPath1=" + $("#shengcPath1").val();
		alert(path);
		getLinkData(path)
	}
	
	function getLinkData(url)
	{
		$.ajax( {
			type : "POST",
			async : false,
			dataType : "json",
			url : url,
			success : function(data)
			{
				alert("您要弹出的信息" + data);
			}
		});
	}
	
	
	function LinkData(url)
	{
		$.ajax( {
			type : "POST",
			async : false,
			dataType : "text",
			url : url,
			success : function(data)
			{
				//alert("您要弹出的信息" + data);
				$("#content1").html(data);
			}
		});
	}
	
	function showData(url,id,fileName)
	{
		$("input[name='fileName']").each(function(){
       		$(this).attr("checked",false);
         });
		$("#" +　id).attr("checked",true);
		$("#fileABC").val(fileName);
		LinkData(url);
	}
	
	function selectAllForTables()
	{
	   $("input[name='checkCreate']").each(function(){
       	$(this).attr("checked",true);
       });  
	}
	
	function selectReverse()
	{
		$("input[name='checkCreate']").each(function(){
       		$(this).attr("checked",!this.checked);              
        });
	}
	
	//之支持IE
	function browseFolder(path) {
	    try {
	        var Message = "\u8bf7\u9009\u62e9\u6587\u4ef6\u5939"; // 选择框提示信息
	        var Shell = new ActiveXObject("Shell.Application");
	        var Folder = Shell.BrowseForFolder(0, Message, 64, 17); // 起始目录为：我的电脑
	        // var Folder = Shell.BrowseForFolder(0, Message, 0); //起始目录为：桌面
	        if (Folder != null) {
	            Folder = Folder.items(); // 返回 FolderItems 对象
	            Folder = Folder.item(); // 返回 Folderitem 对象
	            Folder = Folder.Path; // 返回路径
	            if (Folder.charAt(Folder.length - 1) != "\\") {
	                Folder = Folder + "\\";
	            }
	            document.getElementById(path).value = Folder;
	            return Folder;
	        }
	    }
	    catch (e) {
	        alert(e.message);
	    }
	}
function submit(id)
{
	document.getElementById(id).submit();
}